import Layout from '@/layout'

export default {
  path: '/employees',
  name: 'employees',
  component: Layout,
  children: [
    {
      path: '',
      name: 'employees',
      // 路由懒加载写法：
      component: () => import('@/views/employees'),
      meta: { title: '员工', icon: 'people' }
    },
    {
      // 不加/是相对路径，相对于employees
      path: 'detail',
      // 路由懒加载写法：
      component: () => import('@/views/employees/detail.vue'),
      // 不显示在侧边菜单栏，所以要写hidden:true!!
      hidden: true,
      meta: { title: '员工详情' }
    },

    {
      // 不加/是相对路径，相对于employees
      path: 'print',
      // 路由懒加载写法：
      component: () => import('@/views/employees/print.vue'),
      // 不显示在侧边菜单栏，所以要写hidden:true!!
      hidden: true,
      meta: { title: '打印' }
    }
  ]
}
